#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "client.h"
#include "select.h"

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pushButton_connect_clicked();

    void on_pushButton_log_in_clicked();

private:
    Ui::Widget *ui;
    Json::Value root;
    Json::FastWriter writer;
    Json::Reader reader;
    char jsonstr[65536];
    class select *sel;
};

#endif // WIDGET_H
